package java69.work720;

public class PM extends Employee2 {
    protected String yearsOfExperience;

    public PM() {
    }

    public PM(String name, String adress, String telphone, String email, String office, double salary, String hiredate, String yearsOfExperience) {
        super(name, adress, telphone, email, office, salary, hiredate);
        this.yearsOfExperience = yearsOfExperience;
    }

    public String getYearsOfExperience() {

        return yearsOfExperience;
    }

    public void setYearsOfExperience(String yearsOfExperience) {
        this.yearsOfExperience = yearsOfExperience;
    }

    public void show(){
        super.setName("小王");
        super.setAdress("合肥");
        super.setTelphone("11111111111");
        super.setEmail("1281849374@qq.com");
        super.setOffice("科海");
        super.setHiredate("2020.07.20");
        super.setSalary(7532);
        setYearsOfExperience("5年");
        System.out.println("我是"+super.getName()+",住在"+super.getAdress()+",手机号是"+super.getTelphone()
                +"，电子邮件是"+super.getEmail()+",办公室在"+getAdress()+"，工资是"+super.getSalary()
                +",有"+getYearsOfExperience()+"的工作经验,受雇于"+super.getHiredate());
    }

    public static void main(String[] args) {
        PM pm = new PM();
        pm.show();
    }
}
